package com.capricornus.demo.dao;

import com.capricornus.demo.model.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeptMapper {

    /**
     * 树形展示查询
     *
     * @return
     */
    List<Department> allDeptList();

    /**
     * 查询单个信息
     * @param deptId
     * @return
     */
    Department selectDeptInfo(@Param("deptId")String deptId);

    /**
     * 编辑部门信息
     * @param department
     * @return
     */
    int update(Department department);


}
